//
//  UIView+ZUtilities.h
//  ZPlayer
//
//  Created by Zed Link on 28/11/2016.
//  Copyright © 2016 ZED. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (ZUtilities)

/**
 圆角处理
 */
- (void)zCornerDeal:(CGFloat)radius;

/**
 圆角与阴影处理
 */
- (void)zShadowAndCornerDeal:(CGFloat)radius;

/**
 底部圆角处理
 */
- (void)zBottomCornerDeal:(CGFloat)radius;

/**
 左侧圆角处理
 */
- (void)zLeftCornerDeal:(CGFloat)radius;

/**
 右侧圆角处理
 */
- (void)zRightCornerDeal:(CGFloat)radius;

- (UIColor *)colorOfPoint:(CGPoint)point;

/** 快速调整视图大小和位置 */
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGPoint origin;

@end
